
from django.conf.urls.defaults import *


urlpatterns = patterns('',
                       
    # Ajax
    (r'^ajax/suburb/autocomplete/$', 'formstates_wjContact.contacts.views.ajax_suburb_autocomplete'),
            
    (r'^contacts/$', 'formstates_wjContact.contacts.views.contact_list'),
    (r'^contact_add/$', 'formstates_wjContact.contacts.views.contact'),
    (r'^contact_edit/(?P<main_object_id>\d+)/$', 
         'formstates_wjContact.contacts.views.contact_edit'),
         
    (r'^recipients/$', 'formstates_wjContact.contacts.views.recipient_list'),
    (r'^recipient_add/$', 'formstates_wjContact.contacts.views.recipient'),
    (r'^recipient_edit/(?P<main_object_id>\d+)/$', 
         'formstates_wjContact.contacts.views.recipient_edit'),
         
    (r'^volunteers/$', 'formstates_wjContact.contacts.views.volunteer_list'),
    (r'^volunteer_add/$', 'formstates_wjContact.contacts.views.volunteer'),
    (r'^volunteer_edit/(?P<main_object_id>\d+)/$', 
         'formstates_wjContact.contacts.views.volunteer_edit'),
         
    (r'^search/$', 'formstates_wjContact.contacts.views.search'),
    )

